package com.lrkj.payfee.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 抄房间仪表对象 tb_copy_room
 *
 * @author yajun_ren
 * @date 2021-07-30
 */
@Data
public class CopyRoom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 抄房间id */
    private String copyId;

    /** 房间仪表 */
    @Excel(name = "房间仪表")
    private String rometerId;

    /** 仪表种类ID */
    @Excel(name = "仪表种类ID")
    private String kindId;

    /** 客户 */
    @Excel(name = "客户")
    private String ownerId;

    /** 上次读数日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "上次读数日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 上次读数 */
    @Excel(name = "上次读数")
    private BigDecimal lastReading;

    /** 读数日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "读数日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readingTime;

    /** 本次读数 */
    @Excel(name = "本次读数")
    private BigDecimal theReading;

    /** 实际行读 */
    @Excel(name = "实际行读")
    private BigDecimal practicalLine;

    /** 调整行度 */
    @Excel(name = "调整行度")
    private BigDecimal adjustLine;

    /** 计费行度 */
    @Excel(name = "计费行度")
    private BigDecimal chargedLine;

    /** 抄表说明 */
    @Excel(name = "抄表说明")
    private String readerExplain;

    /** 组织机构 */
    @Excel(name = "组织机构")
    private String deptId;

    /** 祖父ID */
    @Excel(name = "祖父ID")
    private String ancestors;

    //仪表种类
    private String kindName;

    //房间仪表代码
    private String rometerCode;

    //业主名称
    private String ownerName;

    //房间名称
    private String roomName;

    //楼栋名称
    private String floorName;


    private String rometerName;

    //生成状态
    private String status;


    /** 房间id */
    @Excel(name = "房间id")
    private String roomId;

    //房间IDS 参数 , 主要用于收费中心 关联房间
    private String roomIds;

    /** 回程 */
    private String ticket;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("copyId", getCopyId())
            .append("rometerId", getRometerId())
            .append("ownerId", getOwnerId())
            .append("lastTime", getLastTime())
            .append("lastReading", getLastReading())
            .append("readingTime", getReadingTime())
            .append("theReading", getTheReading())
            .append("practicalLine", getPracticalLine())
            .append("adjustLine", getAdjustLine())
            .append("chargedLine", getChargedLine())
            .append("readerExplain", getReaderExplain())
            .append("deptId", getDeptId())
            .append("ancestors", getAncestors())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
